package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.entity.Cart;
import org.csu.mypetstore.api.vo.CartItemVO;
import org.csu.mypetstore.api.vo.CartVO;

import java.math.BigDecimal;
import java.util.List;

public interface CartService {
    CommonResponse<CartVO> getCartItemByUserid(String userid);
    CommonResponse<CartVO> insertCartItem(Cart cart);
    CommonResponse<BigDecimal> updateQuantity(String userid, int quantity, String itemId);
    CommonResponse<Cart> deleteByUserid(String userid);
    CommonResponse<CartVO> deleteCartitemByUserid(String userid,String itemid);
}
